package com.liu.gscfqa.pojo;

import java.time.LocalDateTime;

/**
 * 评论表实体类
 */
public class Comment {
    // 评论ID
    private Integer commentId;

    // 评论内容
    private String content;

    // 评论用户ID
    private Integer userId;

    // 所属帖子ID
    private Integer postId;

    // 父评论ID(用于回复)
    private Integer parentId;

    // 创建时间
    private LocalDateTime createTime;

    // 点赞数
    private Integer likeCount;

    // 构造方法
    public Comment() {
    }

    public Comment(String content, Integer userId, Integer postId) {
        this.content = content;
        this.userId = userId;
        this.postId = postId;
    }

    // Getter和Setter方法
    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }
}